<?php
return CMap::mergeArray(
		require_once(dirname(__FILE__).'/main.php'),
		array(
				// стандартный контроллер
				'defaultController' => 'site',
				// компоненты
				'components'=>array(
						
						'urlManager'=>array(
							'urlFormat'=>'path',
							'showScriptName'=>false,
							'rules'=>array(
								'admin/users'=>'users/admin',
								'admin/users/<id:\d+>'=>'users/update',
								'admin/faq-category'=>'category/admin',
								'admin/faq-category/<id:\d+>'=>'category/update',
								'admin/faq-post'=>'post/admin',
								'admin/faq-post/<id:\d+>'=>'post/update',
								'admin/faq-comment'=>'comment/admin',
								'admin/faq-comment/<id:\d+>'=>'comment/update',
								'admin/documents-user'=>'userDocuments/admin',
								'admin/documents-user/<id:\d+>'=>'userDocuments/update',
								'admin/history'=>'history/admin',
								'admin/history/<id:\d+>'=>'history/update',
								'admin/cases'=>'cases/admin',
								'admin/cases/<id:\d+>'=>'cases/update',
								'admin/partners'=>'partners/admin',
								'admin/partners/<id:\d+>'=>'partners/update',
								'admin/office'=>'office/admin',
								'admin/office/<id:\d+>'=>'office/update',
								'admin/banner'=>'banner/admin',
								'admin/banner/<id:\d+>'=>'banner/update',
								'admin/content'=>'content/admin',
								'admin/content/<id:\d+>'=>'content/update',
								'admin/court-city'=>'addressCity/admin',
								'admin/court-city/<id:\d+>'=>'addressCity/update',
								'admin/court-area'=>'addressArea/admin',
								'admin/court-area/<id:\d+>'=>'addressArea/update',
								'admin/court-region'=>'addressRegion/admin',
								'admin/court-region/<id:\d+>'=>'addressRegion/update',
								'admin/courts'=>'addressJudge/admin',
								'admin/courts/<id:\d+>'=>'addressJudge/update',
								'admin/courts/import'=>'addressJudge/import',
								'admin/documents-categories'=>'documentCategories/admin',
								'admin/documents-categories/<id:\d+>'=>'documentCategories/update',
								'admin/documents-situations'=>'documentSituations/admin',
								'admin/documents-situations/<id:\d+>'=>'documentSituations/update',
								'admin/documents'=>'documents/admin',
								'admin/documents/<id:\d+>'=>'documents/update',
								'admin/documents-questions'=>'questions/admin',
								'admin/documents-questions/<id:\d+>'=>'questions/update',
								'admin/documents-question-answers'=>'qAnswers/admin',
								'admin/documents-question-answers/<id:\d+>'=>'qAnswers/update',
								'admin/login'=>'site/login',
								'admin'=>'site/index',
								'admin/config'=>'site/config',
								'admin/<_c>'=>'<_c>',
								'admin/<_c>/<_a>'=>'<_c>/<_a>',
							),
						),
						// пользователь
						'user'=>array(
							'loginUrl'=>array('/site/login'),
						),

						// mailer
						'mailer'=>array(
								'pathViews' => 'application.views.backend.email',
								'pathLayouts' => 'application.views.email.backend.layouts'
						),

				),
		)
);